home *** CD-ROM | disk | FTP | other *** search
- if exec "alias switch > NUL:" {
- macros.bat
- }
- alias askalias 'ask "\$1" an; if an <> "" { alias \$2 \$an; }'
- noecho
- loop {
- cls
- rem
- rem
- inverse
- rem
- rem M E N U
- rem
- normal
- rem Main - File : $file.$ttype \-> $execfile.$typ
- rem
- rem
- rem
- rem E - editor
- rem C - compiler
- rem L - linker
- rem R - run program
- rem M - make
- rem Q - quit
- rem D - defaults
- rem S - save text-file
- rem K - Master-Kommando
- rem
- rem
- get " select : " antwort
-
- switch antwort
- case = 'e' {
- ed $ed $file.$ttype
- endcase
- }
- case = "c" {
- comp $comp $file.$ttype
- if err {
- pause
- }
- endcase
- }
- case = "l" {
- link $link $linkopt $file.o $andere
- if err {
- pause
- }
- endcase
- }
- case = "m" {
- comp $comp $file.$ttype
- if err {
- pause
- continue
- }
- link $link $linkopt $file.o $andere
- if err {
- pause
- continue
- }
- $execfile $pars
- if typ <> 'prg' {
- get "Press a key"
- }
- endcase
- }
- case = "r" {
- $execfile $pars
- if typ <> 'prg' {
- get "Press a key"
- }
- endcase
- }
- case = "q" {
- cls
- unalias askalias
- quit
- }
- case = "d" {
- cls
- rem
- rem
- rem DEFAULT INSTALLATION
- rem
- rem
- rem
- askalias " EDITOR : " ed
- askalias " COMPILER : " comp
- askalias " LINKER : " link
- ask " FILE : " file
- ask " TYP : " ttype
- ask " ausfuehrbares Programm : " execfile
- if an = "" {
- set execfile $file
- }
- ask " erzeugter Filetyp (z.B TOS) : " typ
- ask " mitanzulinkende Objekte : " andere
- ask " Linker Optionen : " linkopt
- ask " wohin soll gesaved werden ? : " savefile
- ask " Parameter an Programm : " pars
- export file ttype execfile typ andere linkopt savefile pars
- endcase
- }
- case = "s" {
- mv $savefile$file.$ttype $savefile$file.bak -o
- cp $file.$ttype $savefile
- endcase
- }
- case = "k" {
- ask ">>" an
- $an
- pause
- endcase
- }
- endswitch
- }
-